<?php $tinraos = $this->requestAction('tinraos/tinraosright'); ?>
<?php foreach($tinraos as $tinrao): ?>
	<div class="box_project box_rao">                                    
		<span class="title"> <a href="<?php echo $this->webroot;?>classified-ads-<?php echo $tinrao["Tinrao"]["id"];?>/<?php echo preg_replace('/\s+/', '-', $changetv->changetvkd($tinrao["Tinrao"]["tieude"]));?>.html" title="<?php echo $tinrao["Tinrao"]["tieude"];?>"><?php echo $this->Text->truncate($tinrao["Tinrao"]["tieude"], 30, array('ending'=>'...','exact' => false))?></a></span>
		<div class="content">
			<span class="label">Ngày đăng:</span><span class="date-post"><?php echo date('d-m-Y', strtotime($tinrao["Tinrao"]["ngaydang"]));?></span>
			<div class="ndtinrao">
				<?php //echo $tinrao["Tinrao"]["noidung"];?>
				<?php echo $this->Text->truncate($tinrao["Tinrao"]["noidung"], 200, array('ending'=>'...','exact' => false)); ?>
			</div>
		</div>
	</div>
<?php endforeach; ?>